<template>
  <div class="baixe">
    <div class="bg">
      <div class="top">
        <div class="topBg"><p class="btn" @click="download"></p></div>
      </div>
      <div @click="toH5" class="middle">
        <img src="@/assets/img/pcImg/newb-1.jpg" alt="" width="300" />
      </div>
      <div @click="toH5" class="footer">
        <img src="@/assets/img/pcImg/button-1.png" alt="" />
      </div>
    </div>
  </div>
</template>
<script
  async
  defer
  crossorigin="anonymous"
  src="https://connect.facebook.net/en_US/sdk.js"
></script>
<script>
export default {
  name: "Baixe",
  data() {
    return {};
  },
  created() {},
  methods: {
    download() {
      window.location.href =
        "https://d21ei325leplyc.cloudfront.net/apk/luckwiner_BL0001_PT_0.4.4.apk";
    },
    toH5() {
      // window.open("https://h5.luckwin365.cc/?lang='pt'");
      // fbq("track", "ViewContent"); //加入购物车
      // window.location.href = "http://localhost:8082/?lang=pt";
      window.location.href = "https://h5.luckwin365.cc/?lang=pt";
      fbq("track", "ViewContent"); //加入购物车
    },
  },
};
</script>
<style lang="less" scoped>
.baixe {
  //   width: 344px;
  width: 100vw;
  margin: 0 auto;
  //   background-color: #333;
  height: 100%;
  .bg {
    width: 344px;
    position: relative;
    margin: 0 auto;
    min-height: 720px;
    height: auto; /* 高度自动调整 */
    background: url("../../assets/img/pcImg/底图.png") no-repeat;
    background-position: center center;
    background-size: 100% 100%;
    .top {
      width: 100%;
      height: 100px;
      .topBg {
        width: 100%;
        height: 100%;
        margin: 0 auto;
        position: relative;
        background: url("../../assets/img/pcImg/title.png") no-repeat;
        background-position: top center;
        background-size: contain;
        .btn {
          position: absolute;
          right: 0;
          width: 180px;
          height: 100%;
          z-index: 999;
        }
      }
    }
    .middle {
      display: flex;
      justify-content: center;
      align-items: center;
    }
    .footer {
      width: 100%;
      position: absolute;
      bottom: 2%;
      //   margin-top: 330px;
      img {
        width: 50%;
        height: 60%;
        object-fit: contain;
        margin: 0 auto;
      }
    }
  }
}
@media screen and (max-width: 1920px) {
  .baixe {
    .bg {
      height: 660px;
    }
  }
}
@media screen and (max-width: 768px) {
  .baixe {
    width: 100vw;
    height: 100vh;
    margin: 0 auto;
    background-color: #333;
    .bg {
      width: 100%;
    }
  }
}
</style>
